package cn.kshost.zqyg.manager.mapper;

import cn.kshost.zqyg.model.entity.system.SysMenu;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface SysMenuMapper {
    List<SysMenu> selectAllMenu();

    void insertMenu(SysMenu sysMenu);

    void deleteMenu(SysMenu sysMenu);

    Long selectCountById(@Param("id") Long id);

    void updateMenu(SysMenu sysMenu);

    List<SysMenu> selectMenuByUserId(@Param("userId")Long userId);
}
